﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace eLoan.Models
{
    public class PrintSOAModel
    {
        [Display(Name = "Document No")]
        public string DocumentNo { get; set; }

        [Display(Name = "Loan Date")]
        public DateTime DocumentDate { get; set; }

        [Display(Name = "Payment Start Date")]
        public DateTime? PaymentStartDate { get; set; }

        [Display(Name = "Borrower")]
        public string BorrowerName { get; set; }

        [Display(Name = "Receivable")]
        public decimal Receivable { get; set; }

        [Display(Name = "Outstanding Balance")]
        public decimal OutstandingBalance { get; set; }

        [Display(Name = "Total Savings")]
        public decimal TotalSavings { get; set; }

        [Display(Name = "Loan Status")]
        public string LoanStatus { get; set; }

        [Display(Name = "Loan Status")]
        public decimal PenaltyBalance { get; set; }

        public List<ScheduleVsPaymentModel> Payments { get; set; }

    }

    public class ScheduleVsPaymentModel
    {
        public string DocumentNo { get; set; }

        public DateTime DueDate { get; set; }

        public decimal DueAmount { get; set; }

        public DateTime? PaymentDate { get; set; }

        public decimal PaidAmount { get; set; }

        public decimal Penalty { get; set; }

        public string PaymentType { get; set; }

        public string PaymentStatus { get; set; }
    }
}